package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.PaymentMethodDao;
import com.ericom.model.PaymentMethod;
import com.ericom.service.PaymentMethodManager;

@Service("paymentMethodManager")
public class PaymentMethodManagerImpl extends
		GenericManagerImpl<PaymentMethod, Long> implements PaymentMethodManager {

	PaymentMethodDao paymentMethodDao;

	@Autowired
	public PaymentMethodManagerImpl(PaymentMethodDao paymentMethodDao) {
		super(paymentMethodDao);
		this.paymentMethodDao = paymentMethodDao;
	}

	@Override
	public List<PaymentMethod> findByName(String name) {

		return this.paymentMethodDao.findByName(name);
	}

}
